using Miya.ActionManager;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Miya.EmisssionLauncher
{
    public class LaunchPreAction_AMCall : MonoBehaviour, ILaunchPreAction
    {


        IAMOwner _AMOwner;
        IEnumerator ILaunchPreAction.PreAction()
        {
            _AMOwner= _AMOwner??GetComponentInParent<IAMOwner>();

            if(_AMOwner == null ) yield break;

            _AMOwner.Play(ActionCall);

            yield return 0;
        }


        public string ActionCall = "attack";

    }

}
